<!--<?php
print <<<EOT
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="{$_SYS['TP']}/global.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="getfiles.php?t=js&v={$_SYS['VERSION']}&f=util|ajax|post|color"></script>
<script>
var tid={$tid};
var postid={$postid};
var popwin=window.parent.popwin;
</script>
</head>
<body class="postmanager_body">
<form id="postform" onsubmit="return false;">
<table class="postmanager_table">
<tr><td class="postmanager_left">帖子:</td><td><div class="postmanager_content"><span id="postmanager_title">{$post['title']}</span></div><input type="hidden" name="tid" id="tid" value="{$tid}" /><input type="hidden" name="postid" id="postid" value="{$postid}" /><input type="hidden" name="fid" id="fid" value="{$post[fid]}" /></td></tr>
<!--
EOT;
if($action=="delPost"){
$delstr=($tid==0?"直接删除":"放入回收站");
print <<<EOT
-->
<tr><td class="postmanager_left">操作:</td><td>{$delstr}</td></tr>
<!--
EOT;
}
else if($action=="movePost"){
print <<<EOT
-->
<tr><td class="postmanager_left">操作:</td><td>移动至版块 <select name="selectv" id="selectv">{$cache_forumsoption2}</select></td></tr>
<!--
EOT;
}
else if($action=="coverPost"){
print <<<EOT
-->
<tr><td class="postmanager_left">操作:</td><td><select name="selectv" id="selectv"><option value="1">屏蔽内容</option><option value="0">解除屏蔽</option></select></td></tr>
<!--
EOT;
}
else if($action=="lockPost"){
print <<<EOT
-->
<tr><td class="postmanager_left">操作:</td><td><select name="selectv" id="selectv"><option value="1">锁定帖子</option><option value="0">解锁帖子</option></select></td></tr>
<!--
EOT;
}
else if($action=="topPost"){
print <<<EOT
-->
<tr><td class="postmanager_left">操作:</td><td><select name="selectv" id="selectv"><option value="1">置顶帖子</option><option value="0">取消置顶</option></select></td></tr>
<!--
EOT;
}
else if($action=="alltopPost"){
print <<<EOT
-->
<tr><td class="postmanager_left">操作:</td><td><select name="selectv" id="selectv"><option value="1">总置顶帖子</option><option value="0">取消置顶</option></select></td></tr>
<!--
EOT;
}
else if($action=="goodPost"){
print <<<EOT
-->
<tr><td class="postmanager_left">操作:</td><td><select name="selectv" id="selectv"><option value="1">设为精华</option><option value="0">取消精华</option></select></td></tr>
<!--
EOT;
}
else if($action=="upPost"){
print <<<EOT
-->
<tr><td class="postmanager_left">操作:</td><td>提升帖子</td></tr>
<!--
EOT;
}
else if($action=="stampPost"){
print <<<EOT
-->
<tr><td class="postmanager_left">操作:</td><td>鉴定为 <select name="selectv" id="selectv"><option value="0">取消鉴定</option>{$cache_stampsoption}</select></td></tr>
<!--
EOT;
}
else if($action=="highlightPost"){
print <<<EOT
-->
<tr><td class="postmanager_left">高亮:</td><td>
<input type="text" class="text_css" size="8" style="color:{$post['highlight']}" value="" id="highlightcolor" name="highlightfontC" onfocus="colorpicker.choose(event);" onkeyup="colorChanged(this.value);" /> <img src="images/ico_color.gif" align="absmiddle" border="0" id="img_color" class="colorpicker" onclick="colorpicker.choose(event);" /> &nbsp; 
<input type="checkbox" value="1" name="highlightfontB[]" id="highlightfontB" onclick="selectFontB(this.checked)" class="checkbox_css" /><b>B</b>
<input type="checkbox" value="1" name="highlightfontI[]" id="highlightfontI" onclick="selectFontI(this.checked)" class="checkbox_css" /><i>I</i> 
<input type="checkbox" value="1" name="highlightfontU[]" id="highlightfontU" onclick="selectFontU(this.checked)" class="checkbox_css" /><u>U</u>
<script type="text/javascript">
	var highlight="{$post['highlight']}";
	function colorChanged(color){
		E("postmanager_title").style.color = color;
		E("highlightcolor").style.color = color;
		E("highlightcolor").value = color;		
	}
	colorpicker.previewColor = function(color){
		color=color==""?"#000000":color;
		colorChanged(color);
	}
	colorpicker.chooseColor = function(color){
		color=color==""?"#000000":color;
		colorChanged(color);
	}
	function selectFontB(b){
		E("highlightfontB").checked=b;
		E("postmanager_title").style.fontWeight=b?'bold':'normal';
	}
	function selectFontI(b){
		E("highlightfontI").checked=b;
		E("postmanager_title").style.fontStyle=b?'italic':'normal';
	}
	function selectFontU(b){
		E("highlightfontU").checked=b;
		E("postmanager_title").style.textDecoration=b?'underline':'none';
	}
	if(highlight!=''){
		var hls=highlight.split(",");
		try{
			colorChanged(hls[0]);
			selectFontB(hls[1]=="1");
			selectFontI(hls[2]=="1");
			selectFontU(hls[3]=="1");
		}catch(err){
			alert(err);
		}
	}
	

</script>
</td></tr>
<!--
EOT;
}
print <<<EOT
-->
<tr><td class="postmanager_left">原因:</td><td><textarea style="width:300px; height:60px;" name="reason" id="reason"></textarea></td></tr>
<tr style="display:none;"><td class="postmanager_left">操作员:</td><td>{$lg['displayname']}</td></tr>
<tr class="postmanager_noborder"><td></td><td><input type="button" class="button_css" value=" 提 交 " onclick="{$action}()" /></td></tr>
</table>
</form>
</body>
</html>
<!--
EOT;
?>
-->